/**
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:host {
  --gv-option--fxw: wrap;
  --gv-table-header--fz: var(--gv-theme-font-size--m, 14px);
  --gv-table-header--p: 0;
  --gv-button--fz: var(--gv-theme-font-size-l);
}

.page__content {
  display: flex;
}

.application-creation__content {
  background-color: var(--gv-theme-neutral-color-lightest);
  margin-right: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.step, .form {
  height: 100%;
}

.step-content {
  padding: 1rem 2rem;
  min-height: 490px;
  max-height: 490px;
  height: 490px;
  display: flex;
  flex-direction: column;
}

.step-content > * {
  height: 100%;
}

app-application-creation-step1,
app-application-creation-step2,
app-application-creation-step3,
app-application-creation-step4 {
  display: none;
  opacity: 0;
}

.one app-application-creation-step1,
.two app-application-creation-step2,
.three app-application-creation-step3,
.four app-application-creation-step4 {
  display: flex;
  flex-direction: column;
  flex: 1;
  opacity: 1;
  animation: fade-in 0.2s ease-in;
}

.one .application-creation__form, .two .application-creation__form, .three .application-creation__subscription-form {
  display: flex;
  opacity: 1;
  flex-direction: column;
  flex: 1;
}

.application-creation__subscription-form__plans {
  display: flex;
  flex-direction: column;
}

.application-creation__subscription-form__plans gv-button {
  align-self: center;
  margin: 2rem 0;
}

.form-control {
  margin: 0 0 1.5rem 0;
  width: 100%;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

app-application-creation-step1 .step-grid-content {
  margin-top: 3rem;
}

app-application-creation-step3 .step-grid-content {
  grid-gap: 0.5rem;
}

app-application-creation-step3 gv-option {
  height: 410px;
  overflow-x: hidden;
}

gv-table {
  height: 430px;
}

app-application-creation-step3 gv-option.has-disabled-plans {
  height: 320px;
}

.actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--gv-theme-neutral-color-dark);
  padding: 2rem;
}

.application-creation__subscription-form__plans .actions {
  padding: 0;
}

.label {
  padding-left: 0.2rem;
}

.message {
  padding: 0.5rem 0;
  text-align: center;
  border-radius: 2px;
  background-color: var(--gv-theme-neutral-color);
  font-size: var(--gv-theme-font-size-m);
  line-height: 22px;
}

.application-creation__stepper {
  display: flex;
  border-bottom: 1px solid var(--gv-theme-neutral-color-dark);
  padding: 1.5rem 1rem 1rem 1rem;
  min-height: 110px;
}

.application-creation__stepper gv-stepper {
  flex: 1;
  margin-top: 2rem;
}

.step-grid-content {
  display: grid;
  grid-gap: 4rem;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  flex: 1;
}

.step-grid-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}

gv-input, gv-text, gv-option, gv-select, .form-control-grants, gv-switch {
  width: 100%;
}

.application-creation__avatar {
  height: 225px;
}

.grant-types {
  padding: 0 0.5rem;
  margin-top: 2rem;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.application-types {
  --gv-option-button--maw: 220px;
}

.form-control-redirect-uri {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.redirect-uri-tags {
  display: flex;
  align-items: center;
}

.message-full {
  flex: 1;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.message-confirm, .message-pending, .message-error {
  --gv-icon--s: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.message-confirm {
  background-color: var(--gv-theme-color);
  color: var(--gv-theme-font-color-light);
  --gv-icon--c: var(--gv-theme-font-color-light);
}

.application-creation__picture {
  height: 100px;
  width: 100px;
  margin-right: 1rem;
}

.general-summary {
  display: block;
}

.general-summary gv-image {
  float: left;
  margin: 0 0.5rem 0.5rem 0;
}

.validation-summary {
  max-height: 500px;
  overflow-x: auto;
  word-break: break-word;
}

.validation-summary.no-subscription {
  align-self: center;
  min-width: 700px;
}

.validation-summary h2 {
  font-size: var(--gv-table-header--fz);
  margin: 0.2rem 0 1rem 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gv-theme-neutral-color-dark);
  line-height: 20px;
}

.validation-summary span {
  color: var(--gv-theme-neutral-color-darker);
}

.application-creation__autocomplete {
  max-width: 600px;
  align-self: center;
}
